<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>验证码</title>
    <link href="style.css/bootstrap.min.css" rel="stylesheet">
</head>
<style>

</style>
<body>
<form action="${pageContext.request.contextPath}/LoginServlet">
    <input type="text" name="checkcode">
    <img src="${pageContext.request.contextPath}/CheckCodeServlet"  onclick="change(this)"><br>
    <input class="btn btn-secondary" type="submit" value="登录">
</form>
<script>
    function change(img){
        img.src="${pageContext.request.contextPath}/CheckCodeServlet?&data="+new Date().getTime();
    }
</script>
</body>
</html>
